#encoding:utf-8
'''
FileName:error.py
Creator:王烨
Date:2010.5.24
Comment:存放异常类的定义
'''
import rpc_pb2

class ProtobufError(Exception):
    '''使用protobuf过程中产生的异常的基类'''
    def __init__(self, type, msg):
        super(ProtobufError, self).__init__(msg)
        self.type = type
        
    def GetType(self):
        return self.type